Optimal. Leaf size=50 \[ \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{2 d \left (d+e x^2\right )}-\frac {b n \log \left (d+e x^2\right )}{4 d e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2373, 266}
\begin {gather*} \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{2 d \left (d+e x^2\right )}-\frac {b n \log \left (d+e x^2\right )}{4 d e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 266
Rule 2373
Rubi steps
\begin {align*} \int \frac {x \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^2} \, dx &=\frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{2 d \left (d+e x^2\right )}-\frac {(b n) \int \frac {x}{d+e x^2} \, dx}{2 d}\\ &=\frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{2 d \left (d+e x^2\right )}-\frac {b n \log \left (d+e x^2\right )}{4 d e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 74, normalized size = 1.48 \begin {gather*} -\frac {2 a d-2 b n \left (d+e x^2\right ) \log (x)+2 b d \log \left (c x^n\right )+b d n \log \left (d+e x^2\right )+b e n x^2 \log \left (d+e x^2\right )}{4 d e \left (d+e x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.12, size = 179, normalized size = 3.58
method | result | size |
risch | \(-\frac {b \ln \left (x^{n}\right )}{2 e \left (e \,x^{2}+d \right )}-\frac {-i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi b d \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi b d \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi b d \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-2 \ln \left (x \right ) b e n \,x^{2}+\ln \left (e \,x^{2}+d \right ) b e n \,x^{2}-2 \ln \left (x \right ) b d n +\ln \left (e \,x^{2}+d \right ) b d n +2 d b \ln \left (c \right )+2 a d}{4 \left (e \,x^{2}+d \right ) e d}\) | \(179\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 70, normalized size = 1.40 \begin {gather*} -\frac {1}{4} \, b n {\left (\frac {e^{\left (-1\right )} \log \left (x^{2} e + d\right )}{d} - \frac {e^{\left (-1\right )} \log \left (x^{2}\right )}{d}\right )} - \frac {b \log \left (c x^{n}\right )}{2 \, {\left (x^{2} e^{2} + d e\right )}} - \frac {a}{2 \, {\left (x^{2} e^{2} + d e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 64, normalized size = 1.28 \begin {gather*} \frac {2 \, b n x^{2} e \log \left (x\right ) - 2 \, b d \log \left (c\right ) - 2 \, a d - {\left (b n x^{2} e + b d n\right )} \log \left (x^{2} e + d\right )}{4 \, {\left (d x^{2} e^{2} + d^{2} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 292 vs.
\(2 (39) = 78\).
time = 27.00, size = 292, normalized size = 5.84 \begin {gather*} \begin {cases} \tilde {\infty } \left (- \frac {a}{2 x^{2}} - \frac {b n}{4 x^{2}} - \frac {b \log {\left (c x^{n} \right )}}{2 x^{2}}\right ) & \text {for}\: d = 0 \wedge e = 0 \\\frac {- \frac {a}{2 x^{2}} - \frac {b n}{4 x^{2}} - \frac {b \log {\left (c x^{n} \right )}}{2 x^{2}}}{e^{2}} & \text {for}\: d = 0 \\\frac {\frac {a x^{2}}{2} - \frac {b n x^{2}}{4} + \frac {b x^{2} \log {\left (c x^{n} \right )}}{2}}{d^{2}} & \text {for}\: e = 0 \\- \frac {2 a d}{4 d^{2} e + 4 d e^{2} x^{2}} - \frac {b d n \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{4 d^{2} e + 4 d e^{2} x^{2}} - \frac {b d n \log {\left (x + \sqrt {- \frac {d}{e}} \right )}}{4 d^{2} e + 4 d e^{2} x^{2}} - \frac {b e n x^{2} \log {\left (x - \sqrt {- \frac {d}{e}} \right )}}{4 d^{2} e + 4 d e^{2} x^{2}} - \frac {b e n x^{2} \log {\left (x + \sqrt {- \frac {d}{e}} \right )}}{4 d^{2} e + 4 d e^{2} x^{2}} + \frac {2 b e x^{2} \log {\left (c x^{n} \right )}}{4 d^{2} e + 4 d e^{2} x^{2}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.74, size = 70, normalized size = 1.40 \begin {gather*} -\frac {b n x^{2} e \log \left (x^{2} e + d\right ) - 2 \, b n x^{2} e \log \left (x\right ) + b d n \log \left (x^{2} e + d\right ) + 2 \, b d \log \left (c\right ) + 2 \, a d}{4 \, {\left (d x^{2} e^{2} + d^{2} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.50, size = 73, normalized size = 1.46 \begin {gather*} \frac {b\,n\,\ln \left (x\right )}{2\,d\,e}-\frac {b\,\ln \left (c\,x^n\right )}{2\,\left (e^2\,x^2+d\,e\right )}-\frac {b\,n\,\ln \left (e\,x^2+d\right )}{4\,d\,e}-\frac {a}{2\,e^2\,x^2+2\,d\,e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________